package com.jcz.bizImpl;

import java.util.List;

import com.jcz.biz.AuctionBiz;
import com.jcz.dao.AuctionDao;
import com.jcz.daoImpl.AuctionDaoImpl;
import com.jcz.entity.Auction;
import com.jcz.entity.Page;

public class AuctionBizImpl implements AuctionBiz {
	private AuctionDao aDao;
	
	public AuctionDao getaDao() {
		return aDao;
	}

	public void setaDao(AuctionDao aDao) {
		this.aDao = aDao;
	}

	/*查询所有拍卖品*/
	public List<Auction> findAll(Integer size,Integer index,Auction auction) {
		
		return aDao.findAll(size,index,auction);
	}
	
	/*按id查找商品*/
	@Override
	public Auction findById(Integer id) {
		
		return aDao.findById(id);
	}

	
	/*获得总数*/
	public Long findCount() {
		
		return aDao.findCount();
	}

	/*添加*/
	@Override
	public boolean addAuction(Auction auction) {
		
		return aDao.addAuction(auction);
		
	}
	
	/*更新auction*/
	@Override
	public boolean updateAuction(Auction auction) {
		// TODO Auto-generated method stub
		return aDao.updateAuction(auction);
	}


}
